//
//  L0EntryCell.m
//  L0EntryTable
//
//  Created by ∞ on 18/07/08.
//  Copyright 2008 Emanuele Vulcano. All rights reserved.
//

#import "L0EntryCell.h"
#import "L0EntrySection.h"
#import "L0EntryTableController.h"

@implementation L0EntryCell

- (id) init {
	return [self initWithFrame:CGRectZero reuseIdentifier:nil];
}

@synthesize section, height, action, mainLabel;

- (void) setSelected:(BOOL) selected animated:(BOOL) animated {
	[super setSelected:selected animated:animated];
	
	mainLabel.highlighted = selected && self.selectionStyle != UITableViewCellSelectionStyleNone;
}

- (void) setUpEditing {}
- (void) tearDownEditing {}

- (void) select {
	[self.section select:self];
}

- (void) selectNextCellDisplayingEditor {
	[self.section selectCellDisplayingEditorAfter:self];
}

- (void) dealloc {
	self.mainLabel = nil;
	[super dealloc];
}

- (BOOL) displaysEditorOnSetUp { return NO; }
- (BOOL) displaysKeyboardOnSetUp { return NO; }

@end
